package cn.kgc.springbootdemo.config.dingding;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <h3>springbootdemo</h3>
 * <p>钉钉机械人相关配置</p>
 *
 * @author : DongZeJian
 * @date : 2021-01-29 23:25
 **/
@Data
@Component
@ConfigurationProperties(prefix = "dingding")
@EqualsAndHashCode(callSuper = false)
public class DingDingProperties {

    /**
     * 告警环境
     */
    private String environment;

    /**
     * 是否开启钉钉告警
     */
    private Boolean enable;

    /**
     * 客户名称
     */
    private String customer;

    /**
     * 描述
     */
    private String info;

    /**
     * 钉钉告警URL地址
     */
    private String notice;

    /**
     * 是否@所有人
     */
    private Boolean isAtAll;

    /**
     * @手机号
     */
    private String atMobiles;
}
